import { BagGoodsData } from "../roleCenter/bag/BagDataMgr";
import { SceneMgr } from "../SceneMgr";
import { DressUpData } from "./data/DressUpData";


export class MGoodsDescPage {

    private static _ins: MGoodsDescPage;
    static get Ins(): MGoodsDescPage {
        return this._ins ||= new MGoodsDescPage();
    }

    public open(parent: any, goods: DressUpData, handler: Laya.Handler) {
        this.close();
        if (goods)
            SceneMgr.autoCreateView(SceneMgr.GoodsDescPage, parent, [goods, handler]);
    }

    public close() {
        SceneMgr.autoCloseView(SceneMgr.GoodsDescPage);
    }
}